//===============================================================================
// Microsoft patterns & practices Enterprise Library Contribution
// Query Application Block
//===============================================================================

using System.ComponentModel;
using Microsoft.Practices.EnterpriseLibrary.Configuration.Design;
using Microsoft.Practices.EnterpriseLibrary.Configuration.Design.Validation;
using EntLibContrib.Common.Configuration.Design;

namespace EntLibContrib.Query.Configuration.Design
{
  /// <summary>
	/// Represents a <see cref="QueryDataBase"/> configuration element. This class is abstract.
  /// </summary>
  [Image(typeof(QueryBaseNode))]
  [SelectedImage(typeof(QueryBaseNode))]
  public abstract class QueryBaseNode : NameSortConfigurationNode
	{
		#region Properties
		/// <summary>
		/// Gets the name of the node.
		/// </summary>
		/// <value>The name of the node.</value>
		[UniqueName(typeof(QueryBaseNode), typeof(QuerySettingsNode))]
		public override string Name
		{
			get { return base.Name; }
		}

		/// <summary>
		/// Gets the <see cref="QueryDataBase"/> this node represents.
		/// </summary>
		/// <value>
		/// The <see cref="QueryDataBase"/> this node represents.
		/// </value>
		[Browsable(false)]
		public abstract QueryDataBase QueryData
		{
			get;
		}
		#endregion

		#region Construction
		/// <summary>
		/// Initialize a new instance of the <see cref="QueryBaseNode"/> class.
		/// </summary>
		protected QueryBaseNode ()
    {
		}
		#endregion
  }
}